assume cs:code
data segment
db 'welcome to masm!' 
data ends
code segment
start: mov ax,data
mov ds,ax
mov ax,0b800h
mov es,ax
mov si,0
mov di,10*160+80 ;第十行中间
mov cx,16
s1: mov al,ds:[si]
mov ah,2h ;绿色
mov es:[di],ax
inc si
inc di
inc di
loop s1
mov ax,4c00h
int 21h ;
code ends
end start

